package org.jsbd.boss.dao.impl;

import java.util.List;

import org.jsbd.boss.dao.IBookGroupDao;
import org.jsbd.boss.domian.BookGroup;

public class BookGroupDaoImpl extends CrackBaseDao implements IBookGroupDao {

	@Override
	public void save(BookGroup bookGroup) {
		super.insert("qy_book_group.insert_book_group", bookGroup);
	}

	@Override
	public void save(List<BookGroup> list) {
		super.batchInsert("qy_book_group.insert_book_group", list);
	}

	@Override
	public int update(BookGroup bookGroup) {
		return super.update("qy_book_group.update_book_group", bookGroup);
	}

	@Override
	public BookGroup getById(Integer id) {
		return (BookGroup) super.queryForObject("qy_book_group.select_by_id", id);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<BookGroup> getList(BookGroup bookGroup) {
		return super.queryForList("qy_book_group.select_book_group_list", bookGroup);
	}

	@Override
	public Integer getListPageCount(BookGroup bookGroup) {
		return super.queryForCount("qy_book_group.select_book_group_page_count", bookGroup);
	}
	
	@Override
	public void delete(List<Integer> ids) {
		super.batchUpdate("qy_book_group.delete_book_group", ids);
	}

	@Override
	public int updateModifyTime(Integer id) {
		return super.update("qy_book_group.update_modify_time_by_id", id);
	}
	
}
